package com.java.program_questions;

import java.util.Arrays;
import java.util.Scanner;

/**
 * 问题：输入三个整数xyz，请把这三个数由小到大输出
 * 分析：
 */
public class Question15 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int[] a = new int[3];
        System.out.print("输入x：");
        a[0] = sc.nextInt();
        System.out.print("输入y：");
        a[1] = sc.nextInt();
        System.out.print("输入z：");
        a[2] = sc.nextInt();

        Arrays.sort(a);

        System.out.print("xyz从小到大顺序为");
        System.out.print(Arrays.toString(a));
    }
}
